<?php use_helper('jQuery')?>


<div id="component_left" class="">
    <div id="portal_list" class="ui-widget ui-widget-content ui-corner-all">
        <?php include_partial('portal/list', array('portals'=>$portals))?>
    </div>
    <?php if($sf_user->hasCredential('Crear portal')): ?>
        <div id="buttons">
            <div id="crearportal" class="">
                <?php echo jq_link_to_remote('',
                        array(
                            'update'   => 'component_right',
                            'url'      => url_for('portal_new'),
                            'before'   => '$("#component_right").empty();showLoaderComponentRight();',
                            'complete' => 'hideLoader();'
                        ))?>
            </div>
        </div>
    <?php endif; ?>
</div>
<div id="component_right" class="ui-widget ui-widget-content ui-corner-all"></div>